/**
 * 全文签批插件
 */
(function(_){

    _.sign = {};

    /**
     * 打开原生全文签批界面
     * @param options
     */
    _.sign.open = function (options) {

        var _options = {
            success:function () {

            },
            error:function () {

            }
        };
        _options = _.extend(_options, options);
        cordova.exec(
            function success(res){
                if(typeof _options.success == "function"){
                    _options.success(res);
                }
            },
            function error(error){
                if(typeof _options.error == "function"){
                    _options.error(error);
                }
            },
            "CMPContentSign",
            "openContentSign",
            [{
                data:_options.data,
            }]
        );
    };
})(cmp);
